import {
  storeBindingsBehavior
} from 'mobx-miniprogram-bindings'
import {
  store
} from '../../store/index'
// components/th.js
Component({

  behaviors: [storeBindingsBehavior],

  /**
   * 组件的属性列表
   */
  properties: {
    width: {
      type: String,
      value: ''
    },
    title: {
      type: String,
      value: '',
      require: true
    },
    children: {
      type: Array,
      value: []
    },
    // 是否要边框
    border: {
      type: Boolean,
      value: false
    }
  },

  /**
   * 全局变量
   */
  storeBindings: {
    store,
    fields: {
      columnsCj: (store) => store.columnsCj
    }
  },

  /**
   * 组件的初始数据
   */
  data: {

  },

  /**
   * 组件的方法列表
   */
  methods: {

  }
})